home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 65 6e 67 | 2e 63 6f 6e 76 65 78 2e |news.eng|.convex.|
|00000030| 63 6f 6d 21 61 72 63 6f | 21 75 73 65 6e 65 74 0a |com!arco|!usenet.|
|00000040| 46 72 6f 6d 3a 20 46 69 | 72 73 74 6e 61 6d 65 20 |From: Fi|rstname |
|00000050| 4c 61 73 74 6e 61 6d 65 | 20 3c 4c 61 73 74 6e 61 |Lastname| <Lastna|
|00000060| 6d 65 23 6d 23 5f 46 69 | 72 73 74 6e 61 6d 65 5f |me#m#_Fi|rstname_|
|00000070| 4d 69 64 64 6c 65 49 6e | 69 74 69 61 6c 40 6d 73 |MiddleIn|itial@ms|
|00000080| 6d 61 69 6c 2e 61 61 69 | 2e 61 72 63 6f 2e 63 6f |mail.aai|.arco.co|
|00000090| 6d 3e 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |m>.Subje|ct: Re: |
|000000a0| 48 65 6c 70 3a 20 46 69 | 6c 65 20 63 6f 75 6e 74 |Help: Fi|le count|
|000000b0| 69 6e 67 20 6c 69 6e 65 | 73 0a 58 2d 4e 6e 74 70 |ing line|s.X-Nntp|
|000000c0| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 31 |-Posting|-Host: 1|
|000000d0| 33 36 2e 32 32 36 2e 31 | 30 36 2e 31 33 33 0a 43 |36.226.1|06.133.C|
|000000e0| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 74 65 78 |ontent-T|ype: tex|
|000000f0| 74 2f 70 6c 61 69 6e 3b | 20 63 68 61 72 73 65 74 |t/plain;| charset|
|00000100| 3d 75 73 2d 61 73 63 69 | 69 0a 4d 65 73 73 61 67 |=us-asci|i.Messag|
|00000110| 65 2d 49 44 3a 20 3c 44 | 6e 79 7a 79 44 2e 43 46 |e-ID: <D|nyzyD.CF|
|00000120| 30 40 6e 65 77 73 2e 61 | 72 63 6f 2e 63 6f 6d 3e |0@news.a|rco.com>|
|00000130| 0a 54 6f 3a 20 62 72 75 | 6e 6f 70 40 65 61 72 74 |.To: bru|nop@eart|
|00000140| 68 6c 69 6e 6b 2e 6e 65 | 74 0a 53 65 6e 64 65 72 |hlink.ne|t.Sender|
|00000150| 3a 20 75 73 65 6e 65 74 | 40 6e 65 77 73 2e 61 72 |: usenet|@news.ar|
|00000160| 63 6f 2e 63 6f 6d 0a 43 | 6f 6e 74 65 6e 74 2d 54 |co.com.C|ontent-T|
|00000170| 72 61 6e 73 66 65 72 2d | 45 6e 63 6f 64 69 6e 67 |ransfer-|Encoding|
|00000180| 3a 20 37 62 69 74 0a 4f | 72 67 61 6e 69 7a 61 74 |: 7bit.O|rganizat|
|00000190| 69 6f 6e 3a 20 41 52 43 | 4f 20 41 6c 61 73 6b 61 |ion: ARC|O Alaska|
|000001a0| 2c 20 49 6e 63 2e 0a 52 | 65 66 65 72 65 6e 63 65 |, Inc..R|eference|
|000001b0| 73 3a 20 3c 34 68 6e 69 | 31 32 24 71 73 74 40 62 |s: <4hni|12$qst@b|
|000001c0| 6f 6c 69 76 69 61 2e 69 | 74 2e 65 61 72 74 68 6c |olivia.i|t.earthl|
|000001d0| 69 6e 6b 2e 6e 65 74 3e | 0a 4d 69 6d 65 2d 56 65 |ink.net>|.Mime-Ve|
|000001e0| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 44 61 74 65 3a |rsion: 1|.0.Date:|
|000001f0| 20 46 72 69 2c 20 38 20 | 4d 61 72 20 31 39 39 36 | Fri, 8 |Mar 1996|
|00000200| 20 32 32 3a 33 32 3a 33 | 37 20 47 4d 54 0a 58 2d | 22:32:3|7 GMT.X-|
|00000210| 4d 61 69 6c 65 72 3a 20 | 4d 6f 7a 69 6c 6c 61 20 |Mailer: |Mozilla |
|00000220| 31 2e 31 4e 20 28 4d 61 | 63 69 6e 74 6f 73 68 3b |1.1N (Ma|cintosh;|
|00000230| 20 49 3b 20 50 50 43 29 | 0a 58 2d 55 72 6c 3a 20 | I; PPC)|.X-Url: |
|00000240| 6e 65 77 73 3a 34 68 6e | 69 31 32 24 71 73 74 40 |news:4hn|i12$qst@|
|00000250| 62 6f 6c 69 76 69 61 2e | 69 74 2e 65 61 72 74 68 |bolivia.|it.earth|
|00000260| 6c 69 6e 6b 2e 6e 65 74 | 0a 0a 62 72 75 6e 6f 70 |link.net|..brunop|
|00000270| 40 65 61 72 74 68 6c 69 | 6e 6b 2e 6e 65 74 20 28 |@earthli|nk.net (|
|00000280| 50 65 74 65 72 20 42 72 | 75 6e 6f 29 20 77 72 6f |Peter Br|uno) wro|
|00000290| 74 65 3a 0a 3e 44 6f 65 | 73 20 61 6e 79 6f 6e 65 |te:.>Doe|s anyone|
|000002a0| 20 68 61 76 65 20 61 6e | 79 20 73 75 67 67 65 73 | have an|y sugges|
|000002b0| 74 69 6f 6e 73 20 6f 6e | 20 61 20 66 61 73 74 20 |tions on| a fast |
|000002c0| 77 61 79 20 74 6f 20 63 | 6f 75 6e 74 20 74 68 65 |way to c|ount the|
|000002d0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 73 | number |of lines|
|000002e0| 20 69 6e 20 0a 3e 61 20 | 41 53 43 49 49 20 66 69 | in .>a |ASCII fi|
|000002f0| 6c 65 2e 20 20 45 61 63 | 68 20 6c 69 6e 65 20 69 |le. Eac|h line i|
|00000300| 73 20 74 65 72 6d 69 6e | 74 65 64 20 62 79 20 61 |s termin|ted by a|
|00000310| 20 3c 65 6e 74 65 72 3e | 20 61 6e 64 20 61 6c 6c | <enter>| and all|
|00000320| 20 49 20 6e 65 65 64 20 | 74 6f 20 64 6f 20 69 73 | I need |to do is|
|00000330| 20 0a 3e 63 6f 75 6e 74 | 20 74 68 65 20 6e 75 6d | .>count| the num|
|00000340| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 28 72 65 |ber of l|ines (re|
|00000350| 63 6f 72 64 73 29 20 69 | 6e 20 74 68 65 20 66 69 |cords) i|n the fi|
|00000360| 6c 65 2e 0a 3e 0a 3e 54 | 68 65 20 77 61 79 20 49 |le..>.>T|he way I|
|00000370| 27 76 65 20 62 65 65 6e | 20 64 6f 69 6e 67 20 69 |'ve been| doing i|
|00000380| 74 20 69 73 20 62 79 3a | 20 20 66 67 65 74 73 28 |t is by:| fgets(|
|00000390| 72 6f 77 2c 20 31 32 38 | 2c 20 46 69 6c 65 29 3b |row, 128|, File);|
|000003a0| 20 63 6f 75 6e 74 2b 2b | 3b 0a 3e 68 6f 77 65 76 | count++|;.>howev|
|000003b0| 65 72 2c 20 69 66 20 74 | 68 65 20 6c 69 6e 65 20 |er, if t|he line |
|000003c0| 69 73 20 6c 6f 6e 67 65 | 72 20 74 68 65 6e 20 31 |is longe|r then 1|
|000003d0| 32 38 20 63 68 61 72 61 | 63 74 65 72 73 20 74 68 |28 chara|cters th|
|000003e0| 69 73 20 64 6f 65 73 20 | 6e 6f 74 20 77 6f 72 6b |is does |not work|
|000003f0| 20 61 6e 64 20 69 74 20 | 0a 3e 77 6f 75 6c 64 20 | and it |.>would |
|00000400| 73 65 65 6d 20 74 68 61 | 74 20 74 68 65 72 65 20 |seem tha|t there |
|00000410| 6d 75 73 74 20 62 65 20 | 61 20 62 65 74 74 65 72 |must be |a better|
|00000420| 20 77 61 79 20 6f 66 20 | 64 6f 69 6e 67 20 69 74 | way of |doing it|
|00000430| 20 61 6e 79 77 61 79 2e | 2e 2e 20 70 65 72 68 61 | anyway.|.. perha|
|00000440| 70 73 20 62 79 20 0a 3e | 69 6e 63 72 65 6d 65 6e |ps by .>|incremen|
|00000450| 74 69 6e 67 20 74 68 65 | 20 70 6f 69 6e 74 65 72 |ting the| pointer|
|00000460| 20 75 6e 74 69 6c 20 45 | 4f 46 3f 3f 0a 3e 0a 3e | until E|OF??.>.>|
|00000470| 41 6e 79 20 61 73 73 69 | 73 74 61 6e 63 65 20 77 |Any assi|stance w|
|00000480| 6f 75 6c 64 20 62 65 20 | 67 72 65 61 74 6c 79 20 |ould be |greatly |
|00000490| 61 70 70 72 65 63 69 61 | 74 65 64 2e 2e 2e 0a 3e |apprecia|ted....>|
|000004a0| 0a 3e 54 68 61 6e 78 2c | 0a 3e 0a 3e 50 65 74 65 |.>Thanx,|.>.>Pete|
|000004b0| 72 20 42 72 75 6e 6f 0a | 3e 62 72 75 6e 6f 70 40 |r Bruno.|>brunop@|
|000004c0| 65 61 72 74 68 6c 69 6e | 6b 2e 6e 65 74 0a 0a 50 |earthlin|k.net..P|
|000004d0| 65 74 65 72 2c 0a 0a 49 | 66 20 79 6f 75 20 61 72 |eter,..I|f you ar|
|000004e0| 65 20 75 73 69 6e 67 20 | 55 4e 49 58 2c 20 75 73 |e using |UNIX, us|
|000004f0| 65 20 74 68 65 20 77 63 | 20 28 77 6f 72 64 20 20 |e the wc| (word |
|00000500| 63 6f 75 6e 74 20 29 20 | 63 6f 6d 6d 61 6e 64 2e |count ) |command.|
|00000510| 0a 0a 54 68 65 72 65 20 | 61 72 65 20 61 20 63 6f |..There |are a co|
|00000520| 75 70 6c 65 20 6f 66 20 | 77 61 79 73 20 74 6f 20 |uple of |ways to |
|00000530| 67 6f 20 61 62 6f 75 74 | 20 74 68 69 73 2e 20 59 |go about| this. Y|
|00000540| 6f 75 20 63 6f 75 6c 64 | 20 72 65 6c 79 20 6f 6e |ou could| rely on|
|00000550| 20 74 68 65 20 65 66 66 | 69 63 69 65 6e 63 79 0a | the eff|iciency.|
|00000560| 6f 66 20 74 68 65 20 4f | 2f 53 20 61 6e 64 20 69 |of the O|/S and i|
|00000570| 74 73 20 62 75 66 66 65 | 72 69 6e 67 2c 20 72 65 |ts buffe|ring, re|
|00000580| 61 64 69 6e 67 20 6f 6e | 65 20 63 68 61 72 61 63 |ading on|e charac|
|00000590| 74 65 72 20 61 74 20 61 | 20 74 69 6d 65 2e 20 59 |ter at a| time. Y|
|000005a0| 6f 75 20 63 6f 75 6c 64 | 0a 61 6c 73 6f 20 73 77 |ou could|.also sw|
|000005b0| 69 74 63 68 20 74 6f 20 | 74 68 65 20 27 72 65 61 |itch to |the 'rea|
|000005c0| 64 28 46 69 6c 65 44 65 | 73 63 72 69 70 74 6f 72 |d(FileDe|scriptor|
|000005d0| 2c 20 42 75 66 66 65 72 | 73 2c 20 6e 62 79 74 65 |, Buffer|s, nbyte|
|000005e0| 73 29 20 66 75 6e 63 74 | 69 6f 6e 20 61 6e 64 0a |s) funct|ion and.|
|000005f0| 73 63 61 6e 20 74 68 65 | 20 62 75 66 66 65 72 20 |scan the| buffer |
|00000600| 66 6f 72 20 74 68 65 20 | 64 65 73 69 72 65 64 20 |for the |desired |
|00000610| 63 68 61 72 61 63 74 65 | 72 2e 20 49 66 20 49 20 |characte|r. If I |
|00000620| 77 65 72 65 20 64 6f 69 | 6e 67 20 69 74 2c 20 49 |were doi|ng it, I|
|00000630| 20 77 6f 75 6c 64 20 75 | 73 65 20 74 68 65 20 0a | would u|se the .|
|00000640| 72 65 61 64 20 66 75 6e | 63 74 69 6f 6e 2e 0a 0a |read fun|ction...|
|00000650| 0a 2d 42 72 69 61 6e 20 | 3a 2d 29 0a 0a 0a 0a 42 |.-Brian |:-)....B|
|00000660| 72 69 61 6e 20 4c 65 61 | 63 68 0a 6c 61 73 62 66 |rian Lea|ch.lasbf|
|00000670| 6c 40 61 61 69 2e 61 72 | 63 6f 2e 63 6f 6d 0a 0a |l@aai.ar|co.com..|
|00000680| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+